import request from '@/utils/request'
const serviceName = 'SysTask'

export function saveFlow(data) {
  return request({
    url: serviceName + '/Flow/SaveFlow',
    method: 'post',
    data
  })
}

export function getFlow(data) {
  return request({
    url: serviceName + '/Flow/GetData',
    method: 'post',
    data
  })
}

export function getList(data) {
  return request({
    url: serviceName + '/Flow/GetList',
    method: 'post',
    data
  })
}

export function activeFlow(data) {
  return request({
    url: serviceName + '/Flow/ActiveFlow',
    method: 'post',
    data
  })
}

export function deleteFlow(data) {
  return request({
    url: serviceName + '/Flow/DeleteFlow',
    method: 'post',
    data
  })
}

export default {
  saveFlow,
  getFlow,
  getList,
  activeFlow,
  deleteFlow
}
